import appsetting from '@/config/appsetting.js'
const baseUrl = appsetting.baseUrl
const token = '/'
const http = {
	get: (url, params) => {
		return new Promise((resolve, reject) => {
			uni.request({
				url: baseUrl + url, //仅为示例，并非真实接口地址。
				data:params,
				header: {
					"Authorization":'Bearer ' + token
				},
				success: (res) => {
					resolve(res.data)
				},
				fail:(err)=> {
					reject(err)
				}
			})
		})

	},
	post: () => {

	}
}
export default http